package com.zhss.data.refill.center.service;

import com.zhss.data.refill.center.api.AccountAmountApi;
import com.zhss.data.refill.center.mapper.AccountAmountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 资金转账的confirmservice
 */
@Service("accountAmountConfirmService")
@RequestMapping("/finance/confirm")
public class AccountAmountConfirmService implements AccountAmountApi {

    @Autowired
    private AccountAmountMapper accountAmountMapper;

    @Override
    @Transactional
    public void transfer(Long aLong, Long aLong1, Double aDouble) {
        accountAmountMapper.confirmTransferOut(aLong, aDouble);
        accountAmountMapper.confirmTransferIn(aLong1, aDouble);
    }
}
